# Author: Jeff Anderson
# Date: 20 March 2014
# Filename: HW1_v21.R
# Version: 2.1
# Description: Homework 1 assignment for Data Analysis.
# This program is part of assignment 1 in Data Analysis. The first exercise is to 
# simply find the sum of 2 plus 2. 
# The second exercise is to create an vector. The overall intent is also to 
# document the work following best practices. 

# Exercise 1: summation of two numbers. This will first sum the numbers in a 
# variable and then will list the result.
# Variables: sum, which is simply the sum of two numbers (2 and 2 in this case)
# Declaration: equation, which is the sum that we are taking
# 
equation <- "2 + 2 = "
sum <- 2 + 2
equation
sum

# Exercise 2: create a vector. This will create a simple vector and then show 
# the result. 
# Variables: y, which is simply a variable
# Declaration: vector, which is the vector that we are creating
vector <- "vector y from 7, 12, 18, 24"
y <- c(7, 12, 18, 24)
vector
y
